package com.tansuo365.test1.service.kucunservice.kucunimpl;

import com.tansuo365.test1.bean.kucunbean.ChukuDetails;
import com.tansuo365.test1.mapper.kucunmapper.ChukuDetailsMapper;
import com.tansuo365.test1.service.kucunservice.ChukuDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 出库单详细 涉及到根据出库单总id删除出库详细
 */
@Service
public class ChukuDetailsServiceImpl implements ChukuDetailsService {

    @Resource
    private ChukuDetailsMapper chukuDetailsMapper;

    @Override
    public List<ChukuDetails> yongliangSearch(ChukuDetails chukuDetails) {
        return chukuDetailsMapper.yongliangSearch(chukuDetails);
    }

    @Override
    public List<ChukuDetails> listChukuDetailsByZongId(Integer zongzhangid) {
        return chukuDetailsMapper.listChukuDetailsByZongId(zongzhangid);
    }

    @Override
    public List<ChukuDetails> listChukuWhereWuliaoKehuishouByZongId(Integer zongzhangid) {
        return chukuDetailsMapper.listChukuWhereWuliaoKehuishouByZongId(zongzhangid);
    }

    @Override
    public List<ChukuDetails> listChukuDetailsSelective(ChukuDetails chukuDetails) {
        return chukuDetailsMapper.listChukuDetailsSelective(chukuDetails);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return chukuDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteByZongId(Integer zongzhangid) {
        return chukuDetailsMapper.deleteByZongId(zongzhangid);
    }

    @Override
    public int deleteByZongIdArr(Integer[] ids) {
        return chukuDetailsMapper.deleteByZongIdArr(ids);
    }

    @Override
    public int insertSelective(ChukuDetails chukuDetails) {
        return chukuDetailsMapper.insertSelective(chukuDetails);
    }

    @Override
    public ChukuDetails selectByPrimaryKey(Integer id) {
        return chukuDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ChukuDetails chukuDetails) {
        return chukuDetailsMapper.updateByPrimaryKeySelective(chukuDetails);
    }

    @Override
    public List<ChukuDetails> listChukuDetailsWithTuikuIfNotAllBack(Integer id) {
        return chukuDetailsMapper.listChukuDetailsWithTuikuIfNotAllBack(id);
    }
}
